package org.app.Service;

import org.app.Entity.Admin;
import org.app.Entity.comm.Result;

public interface IAdminService {
    Result<Admin> adminLogin(String admin_phone, String admin_password);
    Result<Integer> adminRegister(Admin admin);
    Result<Integer> updateAdminInfo(Admin admin);
    Result<Integer> updateAdminPassword(String admin_id,String old_password,String new_password);
//    void saveToken(Admin admin);
    Result<Integer> forgetPassword(String admin_id,String new_password);

    Result<Admin> getAdminByPhone(String admin_phone);
}
